package condionals;

import app.entity.AdminEntity;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
//        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(ClassCondition.class);
AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext();
context.getEnvironment().setActiveProfiles("test");
context.register(Config.class);
        AdminEntity studententily= context.getBean(AdminEntity.class);


    }
}
